package com.guigu.qxl.mapper;

import com.guigu.pojo.*;
import com.guigu.qxl.pojo.*;
import com.guigu.qxl.pojo.MDesignProcedureVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MDesignProcedureMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(QMDesignProcedure record);

    QMDesignProcedure selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(QMDesignProcedure record);

    String showProcessnumber();

    int updProcessnumber(String b);

    int register(MDesignProcedureVo mDesignProcedureVo);

    void insertDetails(QMDesignProcedureDetails d);

    void updateProcedure(String productId);

    List<QMDesignProcedure> pageS0010MDesignProcedure();

    List<QMDesignProcedure> pageS0011MDesignProcedure();

    List<QMDesignProcedure> pageS0011G0020MDesignProcedure();

    List<QMDesignProcedure> pageS0011G0022MDesignProcedure();

    List<QMDesignProcedure> pageG0020MDesignProcedure();

    List<QMDesignProcedure> pageS0011G0021MDesignProcedure();

    List<QMDesignProcedure> pageMDesignProcedure();

    QMDesignProcedureDetails showMDesignProcedureDetailsById(Integer id);

    List<QMDesignProcedureDetails> showMDesignProcedureDetailsByParentId(Integer id);

    int updateNoProcedure(String productId);

    int mdesignProcedureCheckOk(QMDesignProcedure mdesignProcedure);

    int mdesignProcedureChange(MDesignProcedureVo mdesignProcedureVo);

    int deleteDetailsByParentId(Integer id);

    List<QDModuleDetails> showProuctById(Integer id);

    int updateProcedureDetails(QMDesignProcedureDetails mdpd);

    int insertModule(QMDesignProcedureModule m);

    Integer selectByProductId(String productId);

    int updnumber(QDModuleDetails d);

    void removeProcedureModuleById(int id);

    void updateProcedureDetailsById(int id);

    List<QMDesignProcedureModule> showProcedureModuleByParentId(int id);

    void updateModuleDetails(
            @Param("parentId") int parentId,
            @Param("productId") String productId,
            @Param("amount") Integer amount);

    boolean UpdMDesignProcedure(QMDesignProcedure mdesignProcedure);

    QDFile showDFileByProductId(String productId);

    int DesignModuleCheckOk(QMDesignProcedure mdesignProcedure);

    int UpdDesignModuleDesignProcedure(String productId);

    int delDesignModule(String productId);

    int delModuleDetailsById(int id);
}